class TreeModel {
  // 标识
  String id;
  // 显示名称
  String name;
  // 全路径
  String namePath;
  // 是否根节点
  bool isRoot;
  // 是否选择
  bool isChoose;
  // 是否展开
  bool isExpanded;
  // 是否禁选
  bool isDisabled;
  // 是否显示
  bool isShow;
  // 父级
  TreeModel? parent;
  // 子级数据
  List<TreeModel> children;

  TreeModel({
    required this.id,
    required this.name,
    this.namePath = "",
    this.isRoot = false,
    this.isChoose = false,
    this.isExpanded = false,
    this.isDisabled = false,
    this.isShow = true,
    this.parent,
    List<TreeModel>? children,
  }) : children = children ?? [];
}
